package com.example.fall_guard_band.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("elderly")
public class Elderly {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("age")
    private Integer age;

    @TableField("address")
    private String address;

    @TableField("health_conditions")
    private String healthConditions;

    @TableField("emergency_contact")
    private String emergencyContact;

    @TableField("caregiver_id")
    private Long caregiverId;

    @TableField("device_id")
    private String deviceId;

    @TableField("room_id")
    private Long roomId;

    @TableField("bed_id")
    private Long bedId;

    @TableField("medical_staff_id")
    private Long medicalStaffId;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}